<template>
  <view class="container">
    <view class="loading-icon">
      <view class="loading-bounce"></view>
      <view class="loading-bounce"></view>
      <view class="loading-bounce"></view>
    </view>
    <text>加载中...</text>
  </view>
</template>
 
<style>
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  .loading-icon {
    display: flex;
  }
  .loading-bounce {
    width: 15px;
    height: 15px;
    margin: 5px;
    background-color: #333;
    border-radius: 50%;
    animation: bounce 0.7s infinite alternate;
  }
  .loading-bounce:nth-child(2) {
    animation-delay: 0.2s;
  }
  .loading-bounce:nth-child(3) {
    animation-delay: 0.4s;
  }
  @keyframes bounce {
    0% {
      transform: scale(0.8);
    }
    100% {
      transform: scale(1.2);
    }
  }
</style>